import { createVuePlugin } from "vite-plugin-vue2";
import { defineConfig } from "vite";

export default defineConfig({
  plugins: [
    createVuePlugin(),
  ],
  resolve: {
    alias: [
      {
        find: '@',
        replacement: '/src',
      },
    ],
  },
  server:{
    proxy:{
    //假如你要请求https://api.*.com/a/a
    //那么axios的url，可以配置为 /api/a/a
      '/api': 'http://10.100.218.45:8085/'
    }
  }
});
